package cannot.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cannot.mapper.ShowIndexImageMapper;
import cannot.pojo.ShowIndexImage;
import cannot.service.ShowIndexImageService;

@Service
public class ShowIndexImageServiceImpl implements ShowIndexImageService {
	
	@Autowired
	ShowIndexImageMapper showIndexImageMapper;

	public List<ShowIndexImage> showIndexImages() {
		return showIndexImageMapper.selectByExample(null);
	}

	public void updateIndexImage(ShowIndexImage showIndexImage) {
		showIndexImageMapper.updateByPrimaryKey(showIndexImage);
	}

}
